<?php


namespace App\Repositories\Gashapon;

use App\Models\MainDB\Gashapon\Level as Model;
use App\Traits\Singleton;

class LevelRepository
{
    use Singleton;

    public function get()
    {
        $query  = Model::query();
        $models = $query->get();
        return $models;
    }

    public function next($level)
    {
        $query = Model::query();
        $query->where('level', '>', $level);
        $model = $query->first();
        return $model;
    }
}